package com.framework.base.listener;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author chaolong.jin
 * @description
 * @date 2019/06/24 10:12
 */
@Aspect
@Component
public class BeforeInvokeProcess {
    private String name;
    @Pointcut("@annotation(com.framework.base.listener.BeforeInvoke)")
    public void methodPoint() {
    }

    @Around("methodPoint()")
    public Object around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
        System.out.println(Thread.currentThread().getName() + "  执行");
        return proceedingJoinPoint.proceed();
    }


}
